package com.easyaccount.service;

import com.easyaccount.dao.BillImgMapper;
import com.easyaccount.model.BillImg;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class BillImgService {

    @Resource
    private BillImgMapper billImgMapper;

    public List<BillImg> getImgs(String billCode){
        return billImgMapper.selectByBillCode(billCode);
    }

    public void save(List<BillImg> billImgs){
        billImgMapper.insertBacth(billImgs);
    }
}
